From d6e9ee39c02a1642334a504eddece9abf4f81bfa Mon Sep 17 00:00:00 2001
From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= TODO
-
+
-
diff --git a/docs/index-static.html.in b/docs/index-static.html.in
index 64a1267..93522ce 100644
--- a/docs/index-static.html.in
+++ b/docs/index-static.html.in
@@ -101,47 +101,31 @@
babl is a dynamic, any to any, pixel format translation library.
It allows converting between different methods of storing pixels known as pixel formats that have - with different bitdepths and other data representations, color models and - component permutations.
- -A vocabulary to formulate new pixel formats from existing - primitives is provided as well as the framework to add new color models and - data types. -
- - - - +It allows converting between different methods of storing pixels known as + pixel formats that have with different bitdepths and other data + representations, color models, color spaces and component permutations.
+A vocabulary to formulate new pixel formats from existing + primitives is provided as well as the framework to add new color models, + spaces and data types.
GEGL through
git clone git://git.gnome.org/babl
+
+
+
The following is a list of the major changes that have gone into each babl release. If there are significant improvements to babl when a GEGL release is done a babl release is most often put out just prior @@ -241,7 +229,7 @@ lab_buffer = malloc (pixel_count * 3 * sizeof (float)); lab_buffer, srgb_buffer, pixel_count); /* the data has now been transformed back to srgb data */ - +
If the existing pixel formats are not sufficient for your conversion needs, new ones can be created on the fly. The constructor will provide the prior created one if duplicates are registered.
@@ -269,12 +257,42 @@ lab_buffer = malloc (pixel_count * 3 * sizeof (float)); --> - - -By default the babl API is assuming data to be (unbounded) sRGB data, data + being sRGB defines the conversion to and from gray-scale as well as the gamma + - or Transfer Response Curve, TRC, used for converting between linear and + non-linear variants of the data. +
+ +There is also a babl API call for creating a format for a specific space. + babl_format_with_space("R'G'B' u16", babl_space ("Rec2020")) creates + a 16 bit integer format for the Rec2020 color space. Babl knows internally + about "sRGB", "Rec2020", "Adobe", "Apple" and "ProPhoto" spaces, as they are + defined with constants on their wikipedia pages. +
+ +Additional spaces can be loaded from monitor-class matrix+TRC ICC v2 and + v4 profiles. Using babl_space_from_icc (see babl.h for details). The space of + a babl format can be queried with babl_format_get_space, such a space can + also be turned into a compact icc profile for embedding in images with + babl_space_to_icc.
+ +The conversions babl does with ICC profiles are according to what is known + as the relative-colorimetric intent, monitor profiles containing both the + matrices used by babl and 3d CLUTs (color look up tables) most often also do + relative-colorimetric transfer for the "perceptual" intent CLUTs, but with + more flexible and possibly higher accuracy conversions. If babl adds support + for loading and using CLUTs it will be thus the perceptual + intent will by babl be considered a different albeit more accurate + relative-colorimetric RGB space.
+ + +Babl is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 3 of the License, or (at your option) any later version.
+Babl is free software; you can redistribute it and/or modify it + under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version.
- -